/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 自定义按钮样式 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-light:hover {
    color: #0d6efd;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

/* 表单样式 */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 表格样式 */
.table {
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.table thead {
    background-color: #f8f9fa;
}

/* 图像容器样式 */
.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
}

.img-container:hover .img-overlay {
    opacity: 1;
}

/* 结果展示面板 */
.result-panel {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 仪表板样式 */
.dashboard-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card-body {
    flex: 1;
}

.dashboard-stat {
    text-align: center;
    padding: 20px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
}

/* 警告和提示样式 */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 模型选择按钮 */
.model-select-btn {
    display: block;
    width: 100%;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.model-select-btn:hover {
    border-color: #0d6efd;
    background-color: #e9ecef;
}

.model-select-btn.active {
    border-color: #0d6efd;
    background-color: #cfe2ff;
}

/* 进度条样式 */
.progress {
    height: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid #f3f3f3;
    border-top: 0.25rem solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 上传区域样式 */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #0d6efd;
    background-color: #e9ecef;
}

/* 比较表样式 */
.comparison-table th {
    background-color: #f8f9fa;
}

.comparison-best {
    background-color: #d1e7dd !important;
    font-weight: bold;
} 